﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TTData
{
    /// <summary>
    /// The City Card object
    /// </summary>
    public class CityCard
    {        
        private String _cityName;
        private String _source;

        /// <summary>
        /// Create a new city card with the specified city
        /// </summary>
        /// <param name="cityName">the card's city value</param>        
        public CityCard(String cityName)
        {
            _cityName = cityName;            
            
        }

        /// <summary>
        /// Set or get the card's city value
        /// </summary>
        public String CityName
        {
            get
            {
                return _cityName;
            }
            set
            {
                _cityName = value;
            }
        }

        public String Source
        {
            get
            {
                return _source;
            }
            set
            {
                _source = value;
            }
        }

        public static String GetCityCardImageSource(String cityName)
        {
            if (cityName.Equals(City.AUGSBURG))
                return "resources/images/cards/card_augsburg.png";
            else if (cityName.Equals(City.BASEL))
                return "resources/images/cards/card_basel.png";
            else if (cityName.Equals(City.BUDWEIS))
                return "resources/images/cards/card_budweis.png";
            else if (cityName.Equals(City.CARLSRUHE))
                return "resources/images/cards/card_carlsrube.png";
            else if (cityName.Equals(City.FREIBURG))
                return "resources/images/cards/card_freiburg.png";
            else if (cityName.Equals(City.INGOLSTADT))
                return "resources/images/cards/card_ingolstandt.png";
            else if (cityName.Equals(City.INNSBRUCK))
                return "resources/images/cards/card_innsbruck.png";
            else if (cityName.Equals(City.KEMPTEN))
                return "resources/images/cards/card_kempton.png";
            else if (cityName.Equals(City.LINZ))
                return "resources/images/cards/card_linz.png";
            else if (cityName.Equals(City.LODZ))
                return "resources/images/cards/card_lodz.png";
            else if (cityName.Equals(City.MANNHEIM))
                return "resources/images/cards/card_mannheim.png";
            else if (cityName.Equals(City.MUNCHEN))
                return "resources/images/cards/card_munchen.png";
            else if (cityName.Equals(City.NURENBERG))
                return "resources/images/cards/card_nurenberg.png";
            else if (cityName.Equals(City.PASSAU))
                return "resources/images/cards/card_passau.png";
            else if (cityName.Equals(City.PILSEN))
                return "resources/images/cards/card_pilsen.png";
            else if (cityName.Equals(City.REGENSBURG))
                return "resources/images/cards/card_regesburg.png";
            else if (cityName.Equals(City.SALZBURG))
                return "resources/images/cards/card_salzburg.png";
            else if (cityName.Equals(City.SIGMARINGEN))
                return "resources/images/cards/card_sigmaringen.png";
            else if (cityName.Equals(City.STUTTGART))
                return "resources/images/cards/card_stuttgart.png";
            else if (cityName.Equals(City.ULM))
                return "resources/images/cards/card_ulm.png";
            else if (cityName.Equals(City.WURZBURG))
                return "resources/images/cards/card_wurzburg.png";
            else //if (cityName.Equals(City.ZURICH))
                return "resources/images/cards/card_zurich.png";

            
        }

        public static String GetCityCardNameImageSource(String cityName)
        {
            if (cityName.Equals(City.AUGSBURG))
                return "resources/images/cards/names/card_augsburg.png";
            if (cityName.Equals(City.BASEL))
                return "resources/images/cards/names/card_basel.png";
            else if (cityName.Equals(City.BUDWEIS))
                return "resources/images/cards/names/card_budweis.png";
            else if (cityName.Equals(City.CARLSRUHE))
                return "resources/images/cards/names/card_carlsrube.png";
            else if (cityName.Equals(City.FREIBURG))
                return "resources/images/cards/names/card_freiburg.png";
            else if (cityName.Equals(City.INGOLSTADT))
                return "resources/images/cards/names/card_ingolstandt.png";
            else if (cityName.Equals(City.INNSBRUCK))
                return "resources/images/cards/names/card_innsbruck.png";
            else if (cityName.Equals(City.KEMPTEN))
                return "resources/images/cards/names/card_kempton.png";
            else if (cityName.Equals(City.LINZ))
                return "resources/images/cards/names/card_linz.png";
            else if (cityName.Equals(City.LODZ))
                return "resources/images/cards/names/card_lodz.png";
            else if (cityName.Equals(City.MANNHEIM))
                return "resources/images/cards/names/card_mannheim.png";
            else if (cityName.Equals(City.MUNCHEN))
                return "resources/images/cards/names/card_munchen.png";
            else if (cityName.Equals(City.NURENBERG))
                return "resources/images/cards/names/card_nurenberg.png";
            else if (cityName.Equals(City.PASSAU))
                return "resources/images/cards/names/card_passau.png";
            else if (cityName.Equals(City.PILSEN))
                return "resources/images/cards/names/card_pilsen.png";
            else if (cityName.Equals(City.REGENSBURG))
                return "resources/images/cards/names/card_regesburg.png";
            else if (cityName.Equals(City.SALZBURG))
                return "resources/images/cards/names/card_salzburg.png";
            else if (cityName.Equals(City.SIGMARINGEN))
                return "resources/images/cards/names/card_sigmaringen.png";
            else if (cityName.Equals(City.STUTTGART))
                return "resources/images/cards/names/card_stuttgart.png";
            else if (cityName.Equals(City.ULM))
                return "resources/images/cards/names/card_ulm.png";
            else if (cityName.Equals(City.WURZBURG))
                return "resources/images/cards/names/card_wurzburg.png";
            else //if (cityName.Equals(City.ZURICH))
                return "resources/images/cards/names/card_zurich.png";


        }
    }
}
